package netty.rpc.framework.rpcserver.service.impl;

import lombok.extern.slf4j.Slf4j;
import netty.rpc.framework.api.service.Calculator;
import netty.rpc.framework.core.netty.annotation.RPCService;
import org.springframework.stereotype.Service;


@RPCService
@Slf4j
public class CalculatorImpl implements Calculator {

    //使用基本类型会导致找不到方法
    public int add(Integer a, Integer b) {
        return a + b;
    }

}